Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Useful browser properties
The code runs the standard
initializeObjectbehavior and then captures three property values locally:
- The
DisplayedFieldsproperty holds a comma-separated list of all the column names in the browse. Since you are only interested (for the purposes of this example at least) in looking at values in the browse itself, this is all you need. Note that theAllFieldNamesandAllFieldHandlesproperties are defined for the browser, as they are for viewers, but they hold only the name and handle of the browse widget itself, along with any additional fields or other widgets that you might add to the browser’s frame, not the names and handles of the browse columns themselves. So they are not useful for your purposes here.- The
FieldHandlesproperty holds a comma-separated list of the widget handles of the browse cells, in the same order as theDisplayedFieldslist.- The
QueryRowObjectproperty holds the handle of the record buffer for theRowObjecttable in the SDO that is used to populate the browse. This is needed because, within theROW-DISPLAYevent trigger where the custom code executes, it is not possible to inspect theSCREEN-VALUEs of the cells themselves, so thewidgetValuefunction looks at the correspondingRowObjectfields instead, as shown:
The variables
gcFields,gcHandles, andghBuffermust be defined in the Definitions section of the procedure, so that they are scoped to the procedure as a whole, as shown:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |